package com.fkcai.hansoul.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户实体类
 */
@Data
@TableName("user")
public class User {
	@TableId(type = IdType.AUTO)
	private Integer userId;
	private String username;
	private String realName;
	private String phone;
	private String password;
	private String gender;
	private String avatarUrl;
	private String coverUrl;
	private String location;
	private String bio;
	private Boolean phoneVerified;
	private Integer userLevel;
	private Integer accountStatus;
	private Integer loginCount;
	private Integer userPoints;
	private String deviceInfo;
	private String loginIp;
	private String wechatOpenid;
	private LocalDateTime birthday;
	private LocalDateTime lastLoginTime;
	private LocalDateTime registerTime;
	private LocalDateTime updateTime;
	private LocalDateTime lastUsernameUpdateTime;
	
	// 代表当前用户拥有哪些帖子
	@TableField(exist = false)
	private List<Post> posts;
	
	
}
